package fr.greta.centre.dao;


import java.sql.SQLException;
import java.util.List;

/*author:tdcostas
 * creation d'une classe DaoGenerique regroupant les methodes principales du package DAO:
 * 			1)save
 * 			2)delete
 * 			3)findByKey
 * 			4)findAll
 * 
 */

public interface DaoGenerique <T>{
	int save (T t) throws SQLException;
	boolean delete (int id)throws SQLException;
	T findByKey (int id) throws SQLException;
	List <T> findAll() throws SQLException;

}
